package com.lh.music.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by a on 2016/12/12.
 */

public class VPFAdapter extends FragmentPagerAdapter {
    private List<Fragment> mData;
    public VPFAdapter(FragmentManager fm) {
        super(fm);
    }

    public VPFAdapter(FragmentManager fm, List<Fragment> mData) {
        super(fm);
        this.mData = mData;
    }



    @Override
    public Fragment getItem(int position) {
        return mData.get(position);
    }

    @Override
    public int getCount() {
        return mData.size();
    }



}
